﻿<%@ Page Title="" Language="C#" MasterPageFile="~/FunctionPage.master" AutoEventWireup="true"
    CodeFile="CreateUser.aspx.cs" Inherits="Default2" %>

<%@ Register Assembly="BasicFrame.WebControls.BasicDatePicker" Namespace="BasicFrame.WebControls"
    TagPrefix="BDP" %>
<asp:Content ID="Content1" ContentPlaceHolderID="PageTitle" runat="Server">
    Create User
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="Server">
    <table>
        <asp:Label ID="Label4" runat="server" Text="Please fill all request fill below: "></asp:Label>
        <tr>
            <td>
                <asp:Label ID="lblUserName" runat="server" Text="Login name"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtUserName" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rqfUserName" runat="server" ControlToValidate="txtUserName"
                    ErrorMessage="Please enter User Name" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label3" runat="server" Text="Password"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtPassword" runat="server" TextMode="Password"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rqfPassword" runat="server" ControlToValidate="txtPassword"
                    ErrorMessage="Please enter password" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label6" runat="server" Text="Confirm Password"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtConfirmPass" runat="server" TextMode="Password"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rqfConfirm" runat="server" 
                    ControlToValidate="txtConfirmPass" ErrorMessage="Please confirm your password" 
                    ForeColor="Red"></asp:RequiredFieldValidator>
                <asp:CompareValidator ID="cvConfirm" runat="server" 
                    ControlToCompare="txtPassword" ControlToValidate="txtConfirmPass" 
                    ErrorMessage="CompareValidator" ForeColor="Red"></asp:CompareValidator>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lblFirsName" runat="server" Text="First name"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtFirstName" runat="server" OnTextChanged="txtFirstName_TextChanged"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rqfFirstName" runat="server" ControlToValidate="txtFirstName"
                    ErrorMessage="Please enter First Name" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lblLastName" runat="server" Text="Last name"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtLastName" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label5" runat="server" Text="Genre"></asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="drpGenre" runat="server">
                    <asp:ListItem>Male</asp:ListItem>
                    <asp:ListItem>Female</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lblAddress" runat="server" Text="Address"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtAddress" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label1" runat="server" Text="Phone"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtPhone" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label2" runat="server" Text="Email"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rqfEmail" runat="server" ControlToValidate="txtEmail"
                    ErrorMessage="RequiredFieldValidator" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label22" runat="server" Text="Birthday"></asp:Label>
            </td>
            <td>
                <BDP:BasicDatePicker ID="bdpBirthday" runat="server" DateFormat="dd-MM-yyyy" />
                <BDP:DateRequiredValidator ID="rqfBirthday" runat="server" ControlToValidate="bdpBirthday"
                    ErrorMessage="Please select your birthday" ForeColor="Red"></BDP:DateRequiredValidator>
                <BDP:IsDateValidator ID="idvBirth" runat="server" ControlToValidate="bdpBirthday"
                    ErrorMessage="Please enter date at format &quot;dd/MM/yyyy&quot;" ForeColor="Red"></BDP:IsDateValidator>
            </td>
        </tr>
    </table>
    </table>
    <asp:Button ID="btnCreateUser" runat="server" Text="Create" OnClick="btnCreateUser_Click" />
    <asp:Panel ID="pnlMessage" runat="server" Visible="False">
        <asp:Label ID="lblMessage" runat="server"></asp:Label>
    </asp:Panel>
</asp:Content>
